You don't need to create your program before you sell it. In fact, selling first is the smarter move. Here's exactly how to do it.